package com.css.zfzx.sjcj.modules.qhdrillhistogram.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.modules.qhdrillhistogram.repository.entity.QhDrillHistogramEntity;
import com.css.zfzx.sjcj.modules.qhdrillhistogram.viewobjects.QhDrillHistogramQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @author aa
 * @date 2020-11-11
 */

public interface QhDrillHistogramService {

    public JSONObject queryQhDrillHistograms(QhDrillHistogramQueryParams queryParams, int curPage, int pageSize);

    public QhDrillHistogramEntity getQhDrillHistogram(String id);

    public QhDrillHistogramEntity saveQhDrillHistogram(QhDrillHistogramEntity qhDrillHistogram);

    public QhDrillHistogramEntity updateQhDrillHistogram(QhDrillHistogramEntity qhDrillHistogram);

    public void deleteQhDrillHistograms(List<String> ids);

    public void submitQhDrillHistograms(String ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String importExcel(MultipartFile file);

    String importExcel(MultipartFile file, Map<String,String> attachmentMap);

    String exportExcel(String ids, HttpServletResponse response);

    String exportExcel(List<QhDrillHistogramEntity> entities, HttpServletResponse response);

    JSONObject checkCoordinate(String ids);

    JSONObject dataQualityCheck(String drillCodes);

    JSONObject dataQualityCheck(List<QhDrillHistogramEntity> qhDrillHistogramList);

    QhDrillHistogramEntity inspectionPassed(QhDrillHistogramEntity qhDrillHistogram);

    QhDrillHistogramEntity inspectionFailed(QhDrillHistogramEntity qhDrillHistogram);
}
